<?php
namespace Common\Model;
use Common\Common\Object;

/**
 * Class GoodsObject
 * @package Common\Model
 *
 * @property int $ID
 * @property string $Name
 * @property float $Price
 * @property string $Edition
 * @property string $Color
 * @property int $state
 */
class GoodsObject extends Object{
    /**
     * 获取我的购物车
     * @return
     */
    public function fetchClassification(){
        $classification=D('Classification');
        return $classification->fetchList(['Goods' => $this->ID]);
    }
}